package dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import entity.ColumnDefine;
import entity.IndexDefine;
import entity.PKColumnDefine;
import entity.SequenceDefine;
import entity.TableDefine;

public interface SourceMapper {
	
	List<TableDefine> queryTables(@Param("value")String value);
	
	List<PKColumnDefine> queryPkColumns(@Param("value")String value);
	
	List<ColumnDefine> queryColumns(@Param("value")String value);
	
	List<HashMap<String,Object>> loadData(@Param("tableName")String tableName,
			@Param("pkColumns")String pkColumns,
			@Param("start")Integer start,
			@Param("end")Integer end);
	
	int countData(@Param("tableName")String tableName);
	
	List<IndexDefine> queryIndex(@Param("value")String value);
	
	List<SequenceDefine> querySequence(@Param("value")String value);
	
	String QueryTableComments(@Param("tableName")String tableName);
}
